<?php

use yii\db\Schema;
use yii\db\Migration;

class m160223_082107_add_solution_type_field extends Migration
{
    public function up()
    {
        $this->addColumn('{{%solution}}', 'type', 'tinyint(1) not null default 1 comment "1 for pc, 2 for mobile" after name');
    }

    public function down()
    {
        return $this->dropColumn('{{%solution}}', 'type');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
